//
//  QWNetworkConfig.h
//  Pods
//
//  Created by ZhangYanhua on 15/12/9.
//
//

#import <Foundation/Foundation.h>
#import "QWNetworkRequest.h"


@protocol QWUrlFilterProtocol <NSObject>
- (NSString *)filterUrl:(NSString *)originUrl withRequest:(QWNetworkRequest *)request;
@end

@interface QWNetworkConfig : NSObject

+ (QWNetworkConfig *)sharedInstance;

@property (strong, nonatomic) NSString *baseUrl;
@property (strong, nonatomic) NSString *cdnUrl;
@property (strong, nonatomic, readonly) NSArray *urlFilters;

- (void)addUrlFilter:(id<QWUrlFilterProtocol>)filter;

@end
